/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cmc.rra.tests;

import com.cmc.rra.service.TransactionDetailsService;
import com.cmc.rra.service.impl.TransactionDetailsServiceImpl;
import com.cmc.rra.sub.TransactionDetails;
import java.util.List;

/**
 *
 * @author cmc
 */
public class TransactionDetailsTest {
    
    public static void main(String[] args) {
        
        
        TransactionDetailsService transactionDetailsService  = new TransactionDetailsServiceImpl();
        
        /*TransactionDetails transactionDetails = new TransactionDetailsImpl();
        transactionDetails.setTransactionNumber(1L);
        transactionDetails.setName("Bhaskar");
        transactionDetails.setAmount(2000.00);
        transactionDetails.setDateOfPayment(new java.util.Date());
        transactionDetails.setTaxTypeCode("RR-101");
        transactionDetails.setTaxTypeName("Vehicle");
        transactionDetails.setYear("2013");
        transactionDetails.setLocationCode("999");
        
        transactionDetailsService.create(transactionDetails);
        */
        /*List<TransactionDetails> list = transactionDetailsService.getAll();
        System.out.println("====================="+list.size());*/
        
        TransactionDetails details = transactionDetailsService.getByReceiptNumber(2L);
        System.out.println("==================="+details);
    }
    
}
